package com.example.democlient.controller;

import com.example.democlient.service.HelloRemote;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Easettke
 * @version 1.0
 * @date 2019/8/4 23:13
 */
@RestController
public class ClientController {

    @Resource
    HelloRemote helloRemote;

    @RequestMapping("/hello/{name}")
    public String index(@PathVariable("name") String name) {
        return helloRemote.hello(name);
    }
}
